package com.haiyangwang1.lesson8.ex1;

public class BankException extends Exception{//是检查异常
    private String msg;
    private Double amount;
    public BankException(String msg,double amount) {
        this.msg=msg;
        this.amount=amount;
    }

    public String getMsg() {
        return msg;
    }

    public Double getAmount() {
        return amount;
    }
}
